Determine whether a string is palindrome or not